import request from '@/utils/request'

// 查询收支流水列表
export function listStream(query) {
  return request({
    url: '/system/stream/list',
    method: 'get',
    params: query
  })
}

// 查询收支流水详细
export function getStream(id) {
  return request({
    url: '/system/stream/' + id,
    method: 'get'
  })
}

// 新增收支流水
export function addStream(data) {
  return request({
    url: '/system/stream',
    method: 'post',
    data: data
  })
}

// 修改收支流水
export function updateStream(data) {
  return request({
    url: '/system/stream',
    method: 'put',
    data: data
  })
}

// 删除收支流水
export function delStream(id) {
  return request({
    url: '/system/stream/' + id,
    method: 'delete'
  })
}
